package com.jianshuge.app.bean;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

/***
0：关注人 
1：取消关注人  
2：关注书单   
3：取消关注书单  
4：创建书单 
5：参与书单 
6：评论书单 
7：评论书单条目 
8：投票书单条目 
9：取消投票书单条目 /
10：感谢某人回答    
11：邀请某人回答    
12：收藏了书籍 
***/

/***
0：某人关注了你 
1：某人关注了你创建的书单 
2：某人参与了你创建的书单 
3： 某人参与了你关注的书单 
4：某人评论了你创建的书单 
5：某人评论了你关注的书单 
6：某人评论了你参与创建的书单条目 
7：某人投票了你创建的书单条目 
10：感谢某人回答 
11：邀请某人回答
12：收藏了书籍 
***/

public class Behavior extends Entity {

	private int user_id;
	private String user_name;
	private String user_avatar; 
	
	private int action_type;
	private String action;
	
	private int target_id;
	private String target_title;
	private String target_url;
	private String target_img_url;
	
	private int target_pid;
	private String target_ptitle;
	private String time;
	
	private List<BooklistItem> booklist_items = new ArrayList<BooklistItem>(); 
	private List<Contributor>  contributors = new ArrayList<Contributor>();
	
	public List<BooklistItem> getBooklistItems() {
		return booklist_items;
	}
	
	public List<Contributor> getContributors() {
		return contributors;
	}
	
	public int getUserId() {
		return user_id;
	}
	public void setUserId(int user_id) {
		this.user_id = user_id;
	}

	public String getUserName() {
		return user_name;
	}
	public void setUserName(String userName) {
		this.user_name = userName;
	}
	public String getUserAvatar() {
		return user_avatar;
	}
	public void setUserAvatar(String userAvatar) {
		this.user_avatar = userAvatar;
	}
	
	public int getActionType() {
		return action_type;
	}
	
	public void setActionType(int actionType) {
		this.action_type = actionType;
	}
	
	public String getAction() {
		return action;
	}
	
	public void setAction(String action) {
		this.action = action;
	}
	
	public int getTargetId() {
		return target_id;
	}

	public void setTargetId(int targetId) {
		this.target_id = targetId;
	}
	
	public String getTargetTitle() {
		return target_title;
	}

	public void setTargetTitle(String targetTitle) {
		this.target_title = targetTitle;
	}

	public String getTargetUrl() {
		return target_url;
	}
	
	public void setTargetUrl(String targetUrl) {
		this.target_url = targetUrl;
	}

	public String getTargetImgUrl() {
		return target_img_url;
	//	return target_img_url.replace("mpic", "spic");
	}
	
	public void setTargetImgUrl(String targetImgUrl) {
		this.target_img_url = targetImgUrl;
	}
	
	public int getTargetPid() {
		return target_pid;
	}
	
	public void setTargetPid(int targetPid) {
		this.target_pid = targetPid;
	}
	
	public String getTargetPtitle() {
		return target_ptitle;
	}
	
	public void setTargetPtitle(String targetPtitle) {
		this.target_ptitle = targetPtitle;
	}
	
	public String getTime() {
		return time;
	}
	
	public void setTime(String time) {
		this.time = time;
	}
	
	public final static int CLIENT_MOBILE = 2;
	public final static int CLIENT_ANDROID = 3;
	public final static int CLIENT_IPHONE = 4;
	public final static int CLIENT_WINDOWS_PHONE = 5;
	
	private String face;
	private String body;
	private String author;
	private int authorId;
	private int commentCount;
	private String pubDate;
	private String imgSmall;
	private String imgBig;
	private File imageFile;
	private int appClient = 1; 
	
	public int getAppClient() {
		return appClient;
	}
	public void setAppClient(int appClient) {
		this.appClient = appClient;
	}
	
	public File getImageFile() {
		return imageFile;
	}
	public void setImageFile(File imageFile) {
		this.imageFile = imageFile;
	}	
	public String getImgSmall() {
		return imgSmall;
	}
	public void setImgSmall(String imgSmall) {
		this.imgSmall = imgSmall;
	}
	public String getImgBig() {
		return imgBig;
	}
	public void setImgBig(String imgBig) {
		this.imgBig = imgBig;
	}
	public String getFace() {
		return face;
	}
	public void setFace(String face) {
		this.face = face;
	}
	public String getBody() {
		return body;
	}
	public void setBody(String body) {
		this.body = body;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public int getAuthorId() {
		return authorId;
	}
	public void setAuthorId(int authorId) {
		this.authorId = authorId;
	}
	public int getCommentCount() {
		return commentCount;
	}
	public void setCommentCount(int commentCount) {
		this.commentCount = commentCount;
	}
	public String getPubDate() {
		return pubDate;
	}
	public void setPubDate(String pubDate) {
		this.pubDate = pubDate;
	}	
}